<template>
  <div class="depositDefault">
    <div style="height:50px">
      <el-button type="primary" style="float:left;margin-left:30px;" @click="goback">返回上一级</el-button>
    </div>
    <el-table :data="defaultData" border style="width: 100%">
      <el-table-column prop="id" align="center" label="订单号" />
      <el-table-column prop="company" align="center" label="快递公司" />
      <el-table-column prop="user" align="center" label="收件人" />
      <el-table-column prop="phone" align="center" label="联系方式" />
      <el-table-column prop="area" align="center" label="住址" />
    </el-table>
    <el-table :data="defaultData" border style="width: 100%;margin-top:50px;">
      <el-table-column prop="name" align="center" label="物品图片">
        <img style="width:100px;height:80px;" src="http://imgqn.koudaitong.com/upload_files/2015/06/01/FoAT61oLl7Wu83OaT4l0-av2su73.jpg%21580x580.jpg" alt="">
      </el-table-column>
      <el-table-column prop="name" align="center" label="物品名称">
        <span>【水果皇后】泰国进口3A山竹约10斤泰国 进口3A山竹约10斤</span>
      </el-table-column>
      <el-table-column prop="name" align="center" label="物品单价">
        <span>196元</span>
      </el-table-column>
      <el-table-column prop="name" align="center" label="物品数量">
        <span>1件</span>
      </el-table-column>
      <el-table-column prop="phone" align="center" label="物品重量">
        <span>2kg</span>
      </el-table-column>
      <el-table-column prop="size" align="center" label="配送类型">
        <span>配送到家</span>
      </el-table-column>
      <el-table-column prop="area" align="center" label="备注">
        <span>家中12：00-2：00家中有人，请在这一时间段 配送，谢谢。</span>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  data() {
    return {
      defaultData: []
    }
  },
  mounted() {
    var data = this.$route.params.data
    if (data == undefined) {
      this.goback()
    } else {
      this.defaultData.push(data)
    }
  },
  methods: {
    // 返回
    goback() {
      this.$router.push({ path: '/expressage/distribution' })
    }
  }
}
</script>
<style lang="scss" scoped>
.depositDefault {
  margin-top: 55px;
}
</style>
